<style type="text/css">
table.items { width: 100%; font-size: 11px; }
table.items th, table.items td { line-height: 20px; padding: 8px; text-align: left; vertical-align: top; }
table.items th { background: #E1E4EA; font-weight: bold; }
table.items td { border-top: 1px solid #D5D5D5; }
</style>

<h1>Report : <?php echo $heading; ?></h1>

<table class="items" cellspacing="0" cellpadding="0">
    <thead>
        <tr>
            <th class="minimal-hide" width="10%">SKU</th>
            <th class="minimal-hide" width="15%">Name</th>
            <th class="minimal-hide" width="15%">Description</th>
            <th class="minimal-hide" width="10%" style="text-align: center;">Price Reg</th>
            <th class="minimal-hide" width="10%" style="text-align: center;">Price Sale</th>
            <th class="minimal-hide" width="10%" style="text-align: center;">Categories</th>
            <th class="minimal-hide" width="10%" style="text-align: center;">Quantity On Hand</th>
            <th class="minimal-hide" width="10%" style="text-align: center;">Stock Reserved</th>
            <th class="minimal-hide" width="10%" style="text-align: center;">Stock Available</th>
            <th class="minimal-hide" width="10%" style="text-align: center;">Status</th>
        </tr>
    </thead>
    <tbody>
    <?php foreach($data as $index => $item) : ?>
        <tr class="xtable-data-row <?php if (($index % 2) == 0) echo 'odd'; else echo 'even'; ?>">
            <td width="10%"><?php echo $item['sku']; ?></td>
            <td width="15%"><?php echo $item['name']; ?></td>
            <td width="15%"><?php echo $item['details']; ?></td>
            <td width="10%" style="text-align: center;"><?php echo $item['price']; ?></td>
            <td width="10%" style="text-align: center;"><?php echo $item['sale_price']; ?></td>
            <td width="10%" style="text-align: center;"><?php echo $item['cats']; ?></td>
            <td width="10%" style="text-align: center;"><?php echo $item['qoh']; ?></td>
            <td width="10%" style="text-align: center;"><?php echo $item['reserved']; ?></td>
            <td width="10%" style="text-align: center;"><?php echo $item['available']; ?></td>
            <td width="10%" style="text-align: center;"><?php echo $item['status']; ?></td>
        </tr>
    <?php endforeach; ?>
    </tbody>
</table>